package com.pope945.brower;

import java.awt.Container;
import java.awt.GridLayout;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;
import javax.swing.UIManager;

public class MyBrowserFrame extends JFrame {
	public MyBrowserFrame(){
		JFrame frame = new JFrame("JDIC popopopoppo API Demo - Browser");
		 try {
	            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
	        } catch (Exception e) {}

	        

	        Container contentPane = frame.getContentPane();

	        contentPane.setLayout(new GridLayout(1, 1));
	        contentPane.add(new MyBrowserPanel());

	        frame.addWindowListener(new WindowAdapter() {
	            public void windowClosing(WindowEvent e) {
	               dispose();
	            }       	
	        });

	        frame.pack();
	        frame.setVisible(true);
	}

}
